<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<probiz:pageHeading entityName="${verFunc.verFuncName}" entityHeadingKey="verFuncDetail.heading" />
<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="return fnDoSave(this);" />
	<probiz:iconBtn btnType="saveAndNext" onclick="return fnDoSaveAndNext(this);" />
	<c:if test="${verFunc.verFuncId!=null}">
		<probiz:iconBtn btnType="delete" onclick="return fnDoDelete(this);" />
	</c:if>
	<probiz:iconBtn btnType="back" onclick="return fnDoCancelForm(this);" />
</content>
<probiz:showBindErrors bindPath="verFunc.*" />
<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="verFuncDetail.heading"/></span></li>
	</ul>
</div>
<div class="modify">
	<form:form method="post" cssClass="mainForm" id="verFunc" commandName="verFunc"
			action="${ctxPath}/system/verFunc.html" onsubmit="return validateVerFunc(this);">
		<input type="hidden" name="verFuncId" value="${verFunc.verFuncId}"/> 
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">
		<tr>
			<th>
				<StoreAdmin:label key="verFunc.funcKey" />
			</th>
			<td align="left">
				<input class="inputtxt" style="width: 350px" type="text" name="funcKey" id="funcKey" value="${verFunc.funcKey}" />
			</td>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="verFunc.funcValue" />
			</th>
			<td align="left">
				<label>
					<input type="radio" id="funcValue" name="funcValue" value="on" <c:if test="${empty verFunc.funcValue}">checked</c:if>/><fmt:message key="verFunc.doOn" />
				</label>&nbsp;&nbsp;&nbsp;
				<label>
					<input type="radio" id="funcValue" name="funcValue" value="off" /><fmt:message key="verFunc.doOff" />
				</label>
			</td>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="verFunc.funcTitle" />
			</th>
			<td align="left">
				<textarea name="funcTitle" id="funcTitle" disabled rows="4" style="width:350px" class="textareatxt" validconf="maxlength=512">${verFunc.funcTitle}</textarea>
			</td>
		</tr>
  	</table>
</form:form>
</div>

<v:javascript formName="verFunc" staticJavascript="false" />
<script type="text/javascript">
	$j("[name='funcValue'][value='${verFunc.funcValue}']").attr("checked", "true");
    document.forms["verFunc"].elements["funcKey"].focus();
</script>
